{% extends 'base.html' %}

{% block head %}
 <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
<title>星级景点数量玫瑰图</title>
{% endblock %}

{% block row %}
<div class="col-md-6 pt-6 pb-6 pr-6 align-self-center">
					<p class="text-uppercase font-weight-bold">
						<a class="text-danger" href="/">返回首页</a>
					</p>
					<h1 class="display-4 secondfont mb-3 font-weight-bold">4A-5A景点数量玫瑰图</h1>
					<p class="mb-3">
						统计各省4A-5A的景点数量，制作出玫瑰图，给你具体的数字，让你把握哪个省市的景点质量最高。
					</p>
</div>
<div class="col-md-7 pr-0">
    <div id="84cf889d1434417dab958d2b5d25aefb" class="chart-container" style="width:900px; height:500px;"></div>
    <script>
        var chart_84cf889d1434417dab958d2b5d25aefb = echarts.init(
            document.getElementById('84cf889d1434417dab958d2b5d25aefb'), 'white', {renderer: 'canvas'});
        var option_84cf889d1434417dab958d2b5d25aefb = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "color": [
        "#c23531",
        "#2f4554",
        "#61a0a8",
        "#d48265",
        "#749f83",
        "#ca8622",
        "#bda29a",
        "#6e7074",
        "#546570",
        "#c4ccd3",
        "#f05b72",
        "#ef5b9c",
        "#f47920",
        "#905a3d",
        "#fab27b",
        "#2a5caa",
        "#444693",
        "#726930",
        "#b2d235",
        "#6d8346",
        "#ac6767",
        "#1d953f",
        "#6950a1",
        "#918597"
    ],
    "series": [
        {
            "type": "pie",
            "clockwise": true,
            "data": [
                {
                    "name": "\u5b89\u5fbd",
                    "value": 47
                },
                {
                    "name": "\u6c5f\u82cf",
                    "value": 47
                },
                {
                    "name": "\u6cb3\u5357",
                    "value": 39
                },
                {
                    "name": "\u5317\u4eac",
                    "value": 38
                },
                {
                    "name": "\u6e56\u5317",
                    "value": 37
                },
                {
                    "name": "\u6cb3\u5317",
                    "value": 36
                },
                {
                    "name": "\u5c71\u897f",
                    "value": 36
                },
                {
                    "name": "\u6c5f\u897f",
                    "value": 34
                },
                {
                    "name": "\u91cd\u5e86",
                    "value": 33
                },
                {
                    "name": "\u5e7f\u4e1c",
                    "value": 33
                },
                {
                    "name": "\u56db\u5ddd",
                    "value": 32
                },
                {
                    "name": "\u9655\u897f",
                    "value": 31
                },
                {
                    "name": "\u4e91\u5357",
                    "value": 31
                },
                {
                    "name": "\u5c71\u4e1c",
                    "value": 30
                },
                {
                    "name": "\u6d59\u6c5f",
                    "value": 29
                },
                {
                    "name": "\u5e7f\u897f",
                    "value": 27
                },
                {
                    "name": "\u4e0a\u6d77",
                    "value": 25
                },
                {
                    "name": "\u6d77\u5357",
                    "value": 24
                },
                {
                    "name": "\u8fbd\u5b81",
                    "value": 23
                },
                {
                    "name": "\u5185\u8499\u53e4",
                    "value": 23
                },
                {
                    "name": "\u7518\u8083",
                    "value": 19
                },
                {
                    "name": "\u798f\u5efa",
                    "value": 19
                },
                {
                    "name": "\u5b81\u590f",
                    "value": 18
                },
                {
                    "name": "\u5929\u6d25",
                    "value": 18
                },
                {
                    "name": "\u8d35\u5dde",
                    "value": 18
                },
                {
                    "name": "\u9752\u6d77",
                    "value": 18
                },
                {
                    "name": "\u9ed1\u9f99\u6c5f",
                    "value": 17
                },
                {
                    "name": "\u65b0\u7586",
                    "value": 15
                },
                {
                    "name": "\u6e56\u5357",
                    "value": 14
                },
                {
                    "name": "\u5409\u6797",
                    "value": 10
                },
                {
                    "name": "\u897f\u85cf",
                    "value": 7
                }
            ],
            "radius": [
                "30%",
                "100%"
            ],
            "center": [
                "50%",
                "60%"
            ],
            "roseType": "area",
            "label": {
                "show": true,
                "position": "inside",
                "margin": 8,
                "fontSize": 12,
                "fontStyle": "italic",
                "fontWeight": "bold",
                "fontFamily": "Microsoft YaHei",
                "formatter": "{b}: {c}"
            },
            "rippleEffect": {
                "show": true,
                "brushType": "stroke",
                "scale": 2.5,
                "period": 4
            }
        }
    ],
    "legend": [
        {
            "data": [
                "\u5b89\u5fbd",
                "\u6c5f\u82cf",
                "\u6cb3\u5357",
                "\u5317\u4eac",
                "\u6e56\u5317",
                "\u6cb3\u5317",
                "\u5c71\u897f",
                "\u6c5f\u897f",
                "\u91cd\u5e86",
                "\u5e7f\u4e1c",
                "\u56db\u5ddd",
                "\u9655\u897f",
                "\u4e91\u5357",
                "\u5c71\u4e1c",
                "\u6d59\u6c5f",
                "\u5e7f\u897f",
                "\u4e0a\u6d77",
                "\u6d77\u5357",
                "\u8fbd\u5b81",
                "\u5185\u8499\u53e4",
                "\u7518\u8083",
                "\u798f\u5efa",
                "\u5b81\u590f",
                "\u5929\u6d25",
                "\u8d35\u5dde",
                "\u9752\u6d77",
                "\u9ed1\u9f99\u6c5f",
                "\u65b0\u7586",
                "\u6e56\u5357",
                "\u5409\u6797",
                "\u897f\u85cf"
            ],
            "selected": {},
            "show": false,
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "showContent": true,
        "alwaysShowContent": false,
        "showDelay": 0,
        "hideDelay": 100,
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0,
        "padding": 5
    },
    "title": [
        {
            "text": "\u5404\u7701\u5e024A-5A\u666f\u70b9\u6570\u91cf\u73ab\u7470\u56fe",
            "padding": 5,
            "itemGap": 10
        }
    ],
    "toolbox": {
        "show": true,
        "orient": "horizontal",
        "itemSize": 15,
        "itemGap": 10,
        "left": "80%",
        "feature": {
            "saveAsImage": {
                "type": "png",
                "backgroundColor": "auto",
                "connectedBackgroundColor": "#fff",
                "show": true,
                "title": "\u4fdd\u5b58\u4e3a\u56fe\u7247",
                "pixelRatio": 1
            },
            "restore": {
                "show": true,
                "title": "\u8fd8\u539f"
            },
            "dataView": {
                "show": true,
                "title": "\u6570\u636e\u89c6\u56fe",
                "readOnly": false,
                "lang": [
                    "\u6570\u636e\u89c6\u56fe",
                    "\u5173\u95ed",
                    "\u5237\u65b0"
                ],
                "backgroundColor": "#fff",
                "textareaColor": "#fff",
                "textareaBorderColor": "#333",
                "textColor": "#000",
                "buttonColor": "#c23531",
                "buttonTextColor": "#fff"
            },
            "dataZoom": {
                "show": true,
                "title": {
                    "zoom": "\u533a\u57df\u7f29\u653e",
                    "back": "\u533a\u57df\u7f29\u653e\u8fd8\u539f"
                },
                "icon": {},
                "xAxisIndex": false,
                "yAxisIndex": false,
                "filterMode": "filter"
            },
            "magicType": {
                "show": true,
                "type": [
                    "line",
                    "bar",
                    "stack",
                    "tiled"
                ],
                "title": {
                    "line": "\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",
                    "bar": "\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",
                    "stack": "\u5207\u6362\u4e3a\u5806\u53e0",
                    "tiled": "\u5207\u6362\u4e3a\u5e73\u94fa"
                },
                "icon": {}
            },
            "brush": {
                "icon": {},
                "title": {
                    "rect": "\u77e9\u5f62\u9009\u62e9",
                    "polygon": "\u5708\u9009",
                    "lineX": "\u6a2a\u5411\u9009\u62e9",
                    "lineY": "\u7eb5\u5411\u9009\u62e9",
                    "keep": "\u4fdd\u6301\u9009\u62e9",
                    "clear": "\u6e05\u9664\u9009\u62e9"
                }
            }
        }
    }
};
        chart_84cf889d1434417dab958d2b5d25aefb.setOption(option_84cf889d1434417dab958d2b5d25aefb);
    </script>
 </div>
{% endblock %}

{% block article_post %}
			<p>
			对各省市的4A-5A景点数量进行统计，使用pyecharts绘出玫瑰图，从高到低进行排序。
			</p>
{% endblock %}